/**
 * 读取配置文件
 */
const fs = require("fs");
const path = require("path");
const config = path.resolve(__dirname, "../config/setting.json");

// 读取配置
function readSetting() {
    let data = fs.readFileSync(config, 'utf8');
    return JSON.parse(data);
}

module.exports = readSetting;